package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.ExpressTemplateDAO;
import top.zywork.dos.ExpressTemplateDO;
import top.zywork.dto.ExpressTemplateDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.ExpressTemplateService;

import javax.annotation.PostConstruct;

/**
 * ExpressTemplateServiceImpl服务接口实现类<br/>
 *
 * 创建于2019-11-14<br/>
 *
 * @author http://zywork.top 王振宇
 * @version 1.0
 */
@Service(value = "expressTemplateService")
public class ExpressTemplateServiceImpl extends AbstractBaseService implements ExpressTemplateService {

    private ExpressTemplateDAO expressTemplateDAO;

    @Autowired
    public void setExpressTemplateDAO(ExpressTemplateDAO expressTemplateDAO) {
        super.setBaseDAO(expressTemplateDAO);
        this.expressTemplateDAO = expressTemplateDAO;
    }

    @PostConstruct
    public void init() {
        super.init(ExpressTemplateDO.class, ExpressTemplateDTO.class);
    }
}
